var baseConfig = require("../../baseConfig");
Page({
  data: {
    textHtml: '',
  },
  onLoad: function (options) {
    console.log('id:', options.id);
    this.setData({
      id: options.id
    });
    this.getData();
  },
  getData() {
    wx.request({
      url: `${baseConfig.baseUrl}get_system_notice_detail`,
      method: 'GET',
      data: {
        id: this.data.id
      },
      header: {
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      success: res => {
        console.log(res.data.data);
        this.setData({
          textHtml: res.data.data.content,
          title: res.data.data.title,
          startTime: res.data.data.startTime,
        });
      }
    })
  }
})